package com.training.web.repository;

import com.training.bean.CourseContent;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface WebCourseContentRepository extends JpaRepository<CourseContent, Integer> {
    @Query("select c from CourseContent c where c.cid=:cid")
    List<CourseContent> findCourseContentByCId(@Param("cid") int cid);
}
